import 'package:f_demo_one/views/detail_page.dart';
import 'package:f_demo_one/views/home_page.dart';
import 'package:flutter/material.dart';

void main() {
  // 1. 运行项目
  runApp(MaterialApp(
    // 路由启动页
    initialRoute: '/',
    // 路由表
    routes: {
      '/': (context) => const HomePage(),
      '/detail': (context) => const DetailPage(),
    },
  ));
}
